package com.demo.service.impl;

import com.demo.dao.XianluDAO;
import com.demo.dao.impl.XianluDAOImpl;
import com.demo.service.XianluService;
import com.demo.entity.Xianlu;

import java.io.Serializable;
import java.util.Map;

/**
 * 线路模块的Service层（业务层）的具体实现类，对XianluService接口中定义的抽象方法作出具体的功能实现
 */
public class XianluServiceImpl implements XianluService {
    //@Override
    public void add(Xianlu vo) {
        XianluDAO xianluDAO = new XianluDAOImpl();
        xianluDAO.add(vo);
    }

    //@Override
    public void delete(long id) {
        XianluDAO xianluDAO = new XianluDAOImpl();
        xianluDAO.delete(id);
    }

    //@Override
    public void update(Xianlu vo) {
        XianluDAO xianluDAO = new XianluDAOImpl();
        xianluDAO.update(vo);
    }

    //@Override
    public Xianlu get(Serializable id) {
        XianluDAO xianluDAO = new XianluDAOImpl();
        return xianluDAO.get(id);
    }

    //@Override
    public Map<String, Object> list(Map<String, Object> params) {
        XianluDAO xianluDAO = new XianluDAOImpl();
        return xianluDAO.list(params);
    }
}
